read_file = open("idschoolname.txt", "r",encoding='utf-8')
write_file = open("firstStepUrl.txt", "a+")


try:
    text_line = None
    schoolList=[]

    while True:
        text_line = read_file.readline()
        # print(text_line)
        if text_line:
            schoolList.append(text_line.split(',')[1].replace("\n",""))
        else:
            break

    for id in schoolList:
        url="https://static-data.eol.cn/www/2.0/school/"+id+"/dic/specialplan.json"
        write_file.write(url+"\n")


finally:
    write_file.close()
    read_file.close()

